<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .pageFormContent .textInput { width: 280px; }
    .pageFormContent label { width: 100px; }
    .gray { color: gray; }
</style>
<div class="pageContent" style="padding-top: 1px;width:580px;height:290px;">
    <form id="pagerForm" method="post" action="<c:url value='/show/new'/>" class="pageForm required-validate"
          onsubmit="return iframeCallback(this,callbackForSubmit);"
          enctype="multipart/form-data">
        <div class="pageFormContent">
            <p>
                <label for="txt_show_name" class="required">节目名称</label>
                <input id="txt_show_name" type="text" name="name" class="required"  />
            </p>
            <p>
                <label for="txt_show_pic" class="required">节目照片</label>
            <input id="txt_show_pic" type="file" name="picFile" />
            </p>
            <p>
                <label for="txt_show_dept" class="required">演出部门</label>
                <input style="visibility:hidden" >
            <select id="txt_show_dept"  name="deptId" class="required">
                <option value="3203">政务大厅事业部</option>
                <option value="3204">不动产事业部</option>
                <option value="3205">网校事业部</option>
                <option value="3210">企划部</option>
                <option value="3209">财务部</option>
                <option value="3208">人力资源部</option>
                <option value="3207">营销中心</option>
                <option value="3206">市场部</option>
                <option value="3211">后勤部</option>
            </select>
            </p>
            <p>
                <label for="txt_show_actor">主演</label>
                <input id="txt_show_actor" type="text" name="actor" />
            </p>
            <p>
                <label for="txt_show_order">排序</label>
                <input id="txt_show_order" type="text" name="ordernum"  placeholder="请填入排序的数字"  />
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>


<script type="text/javascript">
    function callbackForSubmit(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info("添加成功！");
            $.pdialog.closeCurrent();
            navTab.reloadFlag('page_game_index')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>
